package com.sixmac.platform.service;

import com.sixmac.core.toolbox.ajax.AjaxResult;
import com.sixmac.module.Contract;
import com.sixmac.module.Landlord;

import java.util.Date;

/**
 * Created by admin on 2018/9/3.
 */
public interface RoomService {

    AjaxResult index(Landlord landlord, Integer page, Integer size);

    AjaxResult addTenant(Contract contract, Landlord landlord, Integer roomId, String startDate, String endDate);

    AjaxResult getTenantByPhone(String phone);

    AjaxResult getRoom(Landlord landlord, Integer roomId);

    AjaxResult getRoomByAdmin(Landlord landlord, Integer roomId,Date time);
}
